home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / ansi / locale.h < prev    next >
C/C++ Source or Header  |  1992-12-12  |  1KB  |  52 lines

  1. /* Copyright (c) 1988, 1992 NeXT Computer, Inc. */
  2.  
  3. #ifndef _ANSI_LOCALE_H
  4. #define _ANSI_LOCALE_H
  5.  
  6. #include <standards.h>
  7.  
  8. #ifdef    __STRICT_ANSI__
  9. #ifndef NULL
  10. #define NULL    ((void *)0)
  11. #endif
  12. #endif
  13.  
  14. #if defined(__STRICT_ANSI__) || defined(_NEXT_SOURCE) 
  15. #define LC_ALL 0
  16. #define LC_COLLATE 1
  17. #define LC_CTYPE 2
  18. #define LC_MONETARY 3
  19. #define LC_NUMERIC 4
  20. #define LC_TIME 5
  21.  
  22. struct lconv {
  23.     char *decimal_point;
  24.     char *thousands_sep;
  25.     char *grouping;
  26.     char *int_curr_symbol;
  27.     char *currency_symbol;
  28.     char *mon_decimal_point;
  29.     char *mon_thousands_sep;
  30.     char *mon_grouping;
  31.     char *positive_sign;
  32.     char *negative_sign;
  33.     char int_frac_digits;
  34.     char frac_digits;
  35.     char p_cs_precedes;
  36.     char p_sep_by_space;
  37.     char n_cs_precedes;
  38.     char n_sep_by_space;
  39.     char p_sign_posn;
  40.     char n_sign_posn;
  41. };
  42.  
  43. #ifdef __STDC__
  44. extern char *setlocale(int category, const char *locale);
  45. extern struct lconv *localeconv(void);
  46. #else
  47. extern char *setlocale();
  48. extern struct lconv *localeconv();
  49. #endif    /* __STDC__ */
  50. #endif /* __STRICT_ANSI__ || _NEXT_SOURCE */
  51. #endif /* _ANSI_LOCALE_H */
  52.